﻿@model ProgressTracker.WebUI.Models.Home.IndexModel

@{
    ViewBag.Title = "Home";
}

@if (!String.IsNullOrEmpty(Model.Message))
{
    <div class="alert alert-info alert-dismissable">
        <button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
        @Model.Message
    </div>
}

@if (User.Identity.IsAuthenticated)
{
    <h2>Welcome Back! <small>Here are today's current tasks.</small></h2>
    @Html.Action("DayTable", "Progress", new { day = DateTime.Today })
}
else
{
    <div class="jumbotron">
        <h2>Welcome to Progress Tracker!</h2>
        <p>Progress Tracker is an easy to use online tool geared towards building better habits.</p>
        <p>Set up daily goals and track your daily progress from anywhere!</p>
        <p><a class="btn btn-primary" href="@Url.Action("Create", "Account")">Get Started Now!</a></p>
    </div>
}